# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-networkx
pkgver=2.6.3
pkgrel=2
pkgdesc="Software for complex networks"
url="https://networkx.github.io/"
arch="noarch"
license="BSD-3-Clause"
depends="
	py3-decorator
	python3
	"
makedepends="py3-setuptools"
subpackages="$pkgname-doc"
checkdepends="
	xdg-utils
	py3-lxml
	py3-matplotlib
	py3-numpy
	py3-pandas
	py3-pydot
	py3-pygraphviz
	py3-pytest
	py3-scipy
	py3-yaml
	graphviz
	"
source="https://pypi.python.org/packages/source/n/networkx/networkx-$pkgver.tar.gz"
builddir="$srcdir/networkx-$pkgver"

build() {
	python3 setup.py build
}

check() {
	# Broken with graphviz
	pytest \
		--ignore networkx/drawing/tests/test_agraph.py \
		--ignore networkx/drawing/tests/test_pydot.py
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
709b5126039c4b34a9b2ed60723e8bab3f591203f3ae8d87474e0f49f52b94b9c15568c78cc9e05e2bf997bc65a6177762bc41b0a44093ee59f6eaa0087d0f34  networkx-2.6.3.tar.gz
"
